class layer

	attr_accessor 	:neurons
	attr_reader 	:next_layer

	def initialize( neurons, next_layer )
		self.neurons = neurons
		self.next_layer = next_layer
	end

	def add_neuron( neuron )
		neurons.push neuron
	end

	def reset_layers
		reset_layer
		next_layer.reset_layers
	end

	def reset_layer
		neurons.map {|n| n.reset}
	end

end

class out_layer < layer
	def reset_layers
		reset_layer
	end
end
